<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
		<title>发券活动列表</title>
		<link rel="stylesheet" href="../assistant/css/reset.css" />
        <link rel="stylesheet" href="../assistant/css/platform.css" />
        <link rel="stylesheet" href="../assistant/css/table.css" />
        <link rel="stylesheet" href="../assistant/js/magicsuggest-min.css" />
        <link rel="stylesheet" href="../assistant/css/property.css" />
        <style type="text/css">
        	.arrow_d{
        		background:url(img/arrow_d.png) no-repeat right 5px center;
        		padding-right: 25px; border: 1px solid #ABAFB8;
    			background-size: 15px 15px;
    			width: auto !important;height: 28px !important;
    			padding-left: 10px; border-right: 0;
    			margin-right: 0px !important;
        	}
        	.options{
        		position:absolute;border: 1px solid #ABAFB8;
        		width:65px  !important;height:28px  !important;
        		margin-right: 0px !important;top:27px;left:0px;
        		background:#fff;display:none ;text-align:left !important;padding-left: 10px;
        		font-size:14px;line-height:28px;
        	}
        </style>
	</head>
	<body>
		<div class="header">
            <div class="u-title">以旧换新发券</div>
        </div>
        <div class="saleexpt-manage" ms-controller="mainController">
            <div class="u-multiform search-param">
                <div class="column">
                    <div class="cell" style="position:relative;">
                        <label class="arrow_d" ms-click="showOption">门店</label>
                        <span class="options" ms-click="changeType"></span>
                        <div class="cnt-box">
                            <input id="magicStore" style="width:250px;" type="text"/>
                            <input id="magicCity"  style="width:250px;display:none;" type="text"/>
                        </div>
                        <button id="search" class="u-btn small" ms-click="search" >查询</button>
                    </div>
                </div>
            </div>
            <div id="exptTable" ms-controller="exptTable"></div>
            <script type="avalon" id="tableActivity">
                <div class="tableWrapper">
                    <table class="table">
                        <thead>
                            <tr>
                                <th>序号</th>
                                <th>活动名称</th>
                                <th>活动时间</th>
                                <th>配置状态</th>
                                <th>配置时间</th>
                                <th>操作人工号</th>
                                <th>操作</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr ms-repeat-row="sources">
                                <td>{{$index+1}}</td>
                                <td>{{row.activityName}}</td>
                                <td>{{row.startTime}}~{{row.endTime}}</td>
                                <td>{{row.configEmployee==null?'默认':'已配置'}}</td>
                                <td>{{row.configTime}}</td>
                                <td>{{row.configEmployee}}</td>
                                <td><a href="javascript:void(0)" ms-click="configActivity(row)">配置</a></td>
                            </tr>
                        </tbody>
                        <tfoot>
                            <tr>
                                <td colspan="14">
                                    <div class="pager">
                                        <div class="first-page" ms-click="firstpage" ms-class={{firstpagestyle}}>首页</div>
                                        <div class="pre-page" ms-click="prepage" ms-class={{prepagestyle}}>上一页</div>
                                        <div class="current-page">
                                            第<input class="current-page-num" type="text" ms-duplex="currentpage" ms-input="jumppage" />页
                                            <span class="totalpage">共 {{totalpage}} 页</span>
                                        </div>
                                        <div class="next-page" ms-click="nextpage" ms-class={{nextpagestyle}}>下一页</div>
                                        <div class="last-page" ms-click="lastpage" ms-class={{lastpagestyle}}>尾页</div>
                                        <div class="messageinfo">{{startrow}}-{{endrow}} 共{{total}}条</div>
                                    </div>
                                </td>
                            </tr>
                        </tfoot>
                    </table>
                </div>
            </script>
        </div>
        
        <div class="loadData"></div>
		<div class="u-popup" id="popup_tips">
        	<div class="bg"></div>
            <div class="asTable">
                <div class="asTableCell">
                    <div class="asCell alert">
                        <a href="javascript:;" class="close btn-close">×</a>
                        <p class="title">提示</p>
                        <div class="container">
                            <div class="error"></div>
                            <p style="max-height: inherit;"></p>
                        </div>
                        <div class="btn-box">
                            <button class="u-btn btn-close">确定</button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <script src="../assistant/js/jquery.min.js"></script>
        <script src="../assistant/js/avalon.shim.sn.js"></script>
        <script src="../assistant/js/swift-ui-table-1.1.js"></script>
        <script src="../assistant/js/magicsuggest-min.js"></script>
        <script src="../assistant/js/platform.js"></script>
        <script src="js/DataInterface.js"></script>
        <script src="js/couponActivity.js"></script>
	</body>
</html>
